import { http } from "/@/utils/http";

/** 查询工序列表 */
export const getListApi = (params) => {
  return http.request<YTableRemoteResult>("get", "/api/mes/process/list", { params });
};

export const getApi = (id) => {
  return http.request("get", "/api/mes/process/" + id);

}

/** 创建工序 */
export const createApi = (data) => {
  return http.request("post", "/api/mes/process", { data });
};

/** 修改工序 */
export const updateApi = (data) => {
  return http.request("put", "/api/mes/process", { data });
};

/** 删除工序 */
export const deleteApi = (ids) => {
  return http.request("delete", "/api/mes/process/" + ids);
};